﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _13ReversingSentence
{
    class Program
    {
        static void Main(string[] args)
        {
            string sentence = "C# is not C++, not PHP and not Delphi!";
            string[] words = sentence.Split(' ', '.', '!', '?', ',');
            for (int i = words.Length-1; i >= 0; i--)
            {
                Console.Write("{0} ", words[i]);
            }
            Console.WriteLine();
            //Figure out how to get the separators in the reversed string.
        }
    }
}
